﻿using System;

public class ComModule
{
    //Class that commicates with the server.  For modularity and upgradibility, this class can be replaced without affecting the application.

    //********************************|Test Code|****************************************
    //code added for early test purposes
    //comment out when the class is completed
    /*
    String testteam1 = "New England Patriots";
    String testteam2 = "Miami Dolphins";
    String testteam3 = "Cincinnati Bengals";
    String testteam4 = "Baltimore Ravens";
    String testteam5 = "Indianapolis Colts";
    String testteam6 = "Denver Broncos";
    String testteam7 = "Kansas City Chiefs";
    String testteam8 = "Philadelphia Eagles";
    String testteam9 = "New Orleans Saints";
    String testteam10 = "Carolina Panthers";
    String testteam11 = "Seattle Seahawks";
    String testteam12 = "San Francisco 49ers";
    String testteam13 = "New York Jets";
    String testteam14 = "San Diego Chargers";
    String testteam15 = "Dallas Cowboys";
    String testteam16 = "Detroit Lions";
    String testteam17 = "Chicago Bears";
    String testteam18 = "Green Bay Packers";
    String testteam19 = "Arizona Cardinals";
    String testteam20 = "Buffalo Bills";
    String testteam21 = "Pittsburgh Steelers";
    String testteam22 = "Cleveland Browns";
    String testteam23 = "Tennessee Titans";
    String testteam24 = "Jacksonville Jaguars";
    String testteam25 = "Houston Texans";
    String testteam26 = "Oakland Raiders";
    String testteam27 = "New York Giants";
    String testteam28 = "Washington Redskins";
    String testteam29 = "Minnesota Vikings";
    String testteam30 = "Tampa Bay Buccaneers";
    String testteam31 = "Atlanta Falcons";
    String testteam32 = "St. Louis Rams";
    */ 
    //********************************|Test Code|****************************************

    //String[] teamNames = new String[32];

    public ComModule()
	{
        //call to function that connects to web service goes here
        //getTeamData();
	}

    //function that connects to web service goes here

    //funtion that creates user goes here

    //function that takes user name and password goes here

    //function that retrieves user challenge question goes here

    //function that sends user's challenge question answer goes here

    //function that resets password goes here

    //function that retrieves the team names from the server and enters them into an array for local storage
    private bool getTeamData()
    {
        //********************************|Test Code|****************************************
        //code added for early test purposes
        //comment out when the class is completed
        //replace when connection to webservice is written
        String[] teamNames = {"New England Patriots", "Miami Dolphins", "Cincinnati Bengals", "Baltimore Ravens", "Indianapolis Colts", "Denver Broncos",
                        "Kansas City Chiefs", "Philadelphia Eagles","New Orleans Saints", "Carolina Panthers", "Seattle Seahawks", "San Francisco 49ers",
                        "New York Jets", "San Diego Chargers", "Dallas Cowboys", "Detroit Lions", "Chicago Bears", "Green Bay Packers", "Arizona Cardinals",
                        "Buffalo Bills", "Pittsburgh Steelers", "Cleveland Browns", "Tennessee Titans", "Jacksonville Jaguars", "Houston Texans",
                        "Oakland Raiders", "New York Giants", "Washington Redskins", "Minnesota Vikings", "Tampa Bay Buccaneers", "Atlanta Falcons",
                         "St. Louis Rams"};
        return true;
        //********************************|Test Code|****************************************
    }

    //returns the team's name at specified index (0-31)
    public string getTeamName(int index)
    {
        return teamNames[index];
    }
}
